{# src/NewsletterNewsBundle/Resources/views/Newsletter/index.html.twig #}
{% extends 'NewsletterNewsBundle::layout.html.twig' %}

{% block body %}
    {% for newsletter in newsletters %}
        <article class="blog">
            <div class="date"><time datetime="{{ newsletter.createdAt|date('c') }}">{{ newsletter.createdAt|date('l, F j, Y') }}</time></div>
            <header>
                <h2><a href="{{ path('newsletter_news_show', { 'id': newsletter.id, 'slug': newsletter.slug }) }}">{{ newsletter.title }}</a></h2>
            </header>


            <div class="snippet">
                <p>{{ newsletter.description(500) }}</p>
                <p class="continue"><a href="{{ path('newsletter_news_show', { 'id': newsletter.id, 'slug': newsletter.slug }) }}">Continue reading...</a></p>
            </div>

           
        </article>



    {% else %}
        <p>There are no newsletter entries</p>
    {% endfor %}


{% endblock %}

